package com.taoist_awei.blog.core;

import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Optional;

@Repository
public interface ArticleRepository {
    Optional<List<ArticleEntity>> getArticleList(int page, int size, String status);

    Optional<ArticleEntity> findArticleById(String id);

    void saveArticle(ArticleEntity articleEntity);

    void deleteArticleById(String id);

    void publish(String articleId);

    void draft(String articleId);

    Optional<Integer> getSize();
}
